package com.huluobo.a2112mvvmdouyindemo.collect;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.mvvm_base.bean.VideoBeanResult;
import com.huluobo.mvvm_base.viewmodel.BaseViewModel;

import java.util.List;

/**
 * Created by LC on 2024/4/10.
 */
public class CollectViewModel extends BaseViewModel<CollectRepo> {
    MutableLiveData<List<VideoBeanResult.VideoBean>> success = new MutableLiveData<>();

    MutableLiveData<String> failed = new MutableLiveData<>();

    public void getCollectVideos() {
        repo.getCollectVideos(success, failed);
    }

    @Override
    protected CollectRepo createRepo() {
        return new CollectRepo();
    }
}
